package com.zbf.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 作者：LCG
 * 创建时间：2019/3/16 23:55
 * 描述：使用feign远程调用服务端
 * fallback 失败回调的接口实现类
 */
@FeignClient(name = "service-provider",fallback = CallFailBack.class)
@Component
public interface TestClient {

    @RequestMapping("/test01")
    public String test01(@RequestParam("string")  String string);

    @RequestMapping("/test11")
    public String test11(@RequestParam("string")  String string);

}
